package homework;

/**
 * @Author Stringzhua
 * @Date 2024/2/1 20:03
 * description:输出1~100之间不能被5整除的数,每5个一行
 * 每5个一行 用count统计输出的个数 count%5=0就说明要换行了
 */
public class homework06 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 5 != 0) {
                count++;
                System.out.print("i = " + i+"    ");
                if (count % 5 == 0) {
                    System.out.println();
                }
            }
        }
    }
}
